package com.tte.common.designpattern.command;

/**
 * @PackageName: com.tte.common.designpattern.command
 * @ClaseName: Stock
 * @Description: 创建一个请求类
 * @Author: DongWH
 * @Date: 2022/3/24 10:28
 * @params *@params $
 */
public class Stock {

    private String name = "ABC";
    private int quantity = 10;

    public void buy(){
        System.out.println("Stock [ Name: "+name+", Quantity: " + quantity +" ] bought");
    }
    public void sell(){
        System.out.println("Stock [ Name: "+name+", Quantity: " + quantity +" ] sold");
    }
}